package java51_19;

import java.util.Arrays;
import java.util.Random;

public class RandomTest {

	public static void main(String[] args) {
		Random r = new Random();
		for (int i = 1; i <= 20; i++) {
			System.out.print(r.nextInt() + "\t");
		}

		System.out.println();

		for (int i = 1; i <= 20; i++) {
			System.out.print(r.nextGaussian() + "\t");
		}
		System.out.println();
		for (int i = 1; i <= 20; i++) {
			System.out.print(r.nextDouble() + "\t");
		}
		System.out.println();
		for (int i = 1; i <= 20; i++) {
			System.out.print(r.nextBoolean() + "\t");
		}
		System.out.println();
		System.out.println("byte:");
		byte[] b = new byte[40];
		for (int i = 1; i <= 20; i++) {
			r.nextBytes(b);
			System.out.println(Arrays.toString(b));
		}

		System.out.println();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>");
		for (int i = 1; i <= 20; i++) {
			System.out.print(r.nextInt(100) + "\t");
		}
	}
}
